From 990bc0face22b60f54ef009e4a34a323bc70cef3 Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Sun, 31 Mar 2013 09:34:35 -0400 Subject: [PATCH] * lisp/hi-lock.el (hi-lock-mode): Cleanup after revert-buffer. --- lisp/ChangeLog | 4 ++++ lisp/hi-lock.el | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 420d2a5f504..5f08515bacb 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,7 @@ +2013-03-31 Stefan Monnier + + * hi-lock.el (hi-lock-mode): Cleanup after revert-buffer (bug#13891). + 2013-03-30 Fabián Ezequiel Gallina Un-indent after "pass" and "return" statements (Bug#13888) diff --git a/lisp/hi-lock.el b/lisp/hi-lock.el index 38e5e8acb15..e2dc4eac67b 100644 --- a/lisp/hi-lock.el +++ b/lisp/hi-lock.el @@ -389,7 +389,9 @@ versions before 22 use the following in your init file: (define-key-after menu-bar-edit-menu [hi-lock] (cons "Regexp Highlighting" hi-lock-menu)) (hi-lock-find-patterns) - (add-hook 'font-lock-mode-hook 'hi-lock-font-lock-hook nil t)) + (add-hook 'font-lock-mode-hook 'hi-lock-font-lock-hook nil t) + ;; Remove regexps from font-lock-keywords (bug#13891). + (add-hook 'change-major-mode-hook (lambda () (hi-lock-mode -1)) nil t)) ;; Turned off. (when (or hi-lock-interactive-patterns hi-lock-file-patterns) -- 2.30.2